{% extends "learning_dogs/base.html" %}

{% block content %}

<p><a href="{% url 'learning_dogs:topic' topic.id %}">{{ topic }}</a> </p>

<p>Add a new entry:</p>
<form action="{% url 'learning_dogs:new_entry' topic.id%}" method='post'>
    {% csrf_token %}
    {{ form.as_p }}
    <button name='submit'>Add entry</button>
</form>

{% endblock content %}